package com.oxygen.pt.utils;

import com.oxygen.pt.pojo.entity.Patient;

public class RedisConstants {
    public static final String LOGIN_CODE_KEY = "login:code:"; //登录验证码时间
    public static final Long LOGIN_CODE_TTL = 2L; //验证码有效时间 2min
    public static final String LOGIN_USER_KEY = "login:token:"; //用户登录的权限的token
    public static final String USER_ID = "user"; //已经登录的用户ID
    public static final String PT_ID = "patient"; //患者ID缓存
    public static final Long LOGIN_USER_TTL = 36000L; //登录有效时长
    public static final String CHAMBER_INFORMATION = "chamber_information"; //REDIS存储氧舱缓存数据
    public static final String PATIENT_ALLOCATION  = "patient_allocation"; // Redis存储患者被分配到了哪个舱号中
    public static final String FINISH_TREATMENT = "finish_treatment:"; // 今日已完成的Set缓存(使用时添加缓存的日期)
}
